# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=cisco-global-exploiter
pkgver=1.3
pkgrel=11
groups=('blackarch' 'blackarch-exploitation')
pkgdesc="A perl script that targets multiple vulnerabilities in the Cisco Internetwork Operating System (IOS) and Catalyst products."
arch=('any')
url='http://www.blackangels.it'
license=('GPL')
depends=('perl')
source=(https://dl.packetstormsecurity.net/0405-exploits/cge-${pkgver//./}.tar.gz
        cisco-global-exploiter)
sha512sums=('2528d71b126e91f3a3c0db10fd647f2fa852c47762d96d51cf530cbd271df6ab3583cd7b52cb895c94f59108c40af166e746761771ddc729238d5ff78876290d'
            'b540061b66bc5dfe62e1754402a70827cb09fa031689147005aedb64c537b8b6cae6deb5d738326cfecab5913d39622abca431582422975a3187720bce90053e')

package() {
  cd cge-13

  install -dm 755 "$pkgdir/usr/bin"
  install -dm 755 "$pkgdir/usr/share/$pkgname/doc"
  install -Dm 755 "$srcdir/cisco-global-exploiter" "$pkgdir/usr/bin/$pkgname"
  install -Dm 755 cge.pl "$pkgdir/usr/share/$pkgname/cge.pl"
  install -Dm 644 Readme "$pkgdir/usr/share/$pkgname/$doc"

  cd "$srcdir/cge-13/doc"

  for doc in Changelog Documentation; do
    install -Dm 644 $doc "$pkgdir/usr/share/$pkgname/doc/$doc"
  done
}

